# coding:utf-8

# python 3.10版本支持问题，此时在开头多导入一个依赖包collections.abc
import collections.abc
import pptx

from utils.file_util import get_desk_top_p

p = pptx.Presentation(get_desk_top_p() + '\\333\\test2.ppt')
for slide in p.slides:
    for shape in slide.shapes:
        if shape.has_text_frame:
            print(shape.text_frame.text)
        if shape.has_table:
            for cell in shape.table.iter_cells():
                print(cell.text)
